from model.GameMap import GameMap
from model.Hero import Hero
from controller.GameController import GameController
from view.blockImgs.HeroImg import HeroImg
from view.blockImgs.StateImg import StateImg
from view.ui.GameUI import GameUI


def load_game_objects(game_objects):
    game_objects.append(GameUI())
    game_objects.append(GameController())
    game_objects.append(Hero)
    HeroImg()
    StateImg()


gameObjects = []
GameMap.load_map(0)
load_game_objects(gameObjects)
while True:
    for obj in gameObjects:
        obj.update()
    for events in GameMap.game_event:
        for event in events:
            event.update()
pygame.quit()
